package rpc_1.interfaces;

import rpc_1.Service.RpcException;

//服务端通过这个接口提供服务，获取服务
public interface ServiceProvider{
    /*
    register one service to this container
     */
    <T> void provide(T service) throws RpcException;
    /*
    get the service from the container
     */
    Object getService(String serviceName) throws RpcException;

}
